package org.gthelper.error;


public class ErrorCode
{
	//返回客户端的错误码前缀
	public static final long ERRBASE = 0x0F00000000000000L;
	
	public static final int NORMAL = 0;			//正常
	public static final int UNKNOWN= 6;			//位置错误
	public static final int IOEXC = 7;			//IO错误
	public static final int DATABASEERR = 8;	//数据库操作错误
	
	public static final int WRONGFORM = 1;		//数据格式错误
	public static final int WRONGSIGN = 2;		//签名错误
	public static final int NOTLOGIN = 3;		//未登录
	public static final int LOGINTIMEOUT = 4;	//已过登录有效时间
	public static final int NONPUBKEY = 5;		//服务器数据库中没有用户公钥
	public static final int BUILDCLASSERR = 6;	//对象构建错误
	
	public static final int IDEXIST = 20;		//请求注册的id已存在
	public static final int NONEPRIKEY = 21;	//数据库内没有用于解密的私钥
	public static final int IDNOTEXIST = 22;	//用户不存在
	public static final int WRONGPW = 23;		//密码错误
	public static final int WRONGID = 24;		//非法id，一般指含有非法字符	
	
	public static final int FILENOTEXIST = 25;	//文件不存在
	public static final int CANTDELETE = 26;	//文件处于不宜删除的状态（正在下载、处理等等）
	public static final int DELETING = 27;		//文件正在被删除
	
	public static final int FROMHDFS = 28;		//与hdfs交互时出错
	public static final int FILEEXIST = 29;		//文件已存在
	public static final int CANTUPLOAD = 30;	//文件不能上传（已存在等等）
	public static final int WRONGNAME = 31;		//文件名错误
}